home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / GMS / GMSDev / Includes / system / misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-02  |  2.2 KB  |  96 lines

  1. #ifndef SYSTEM_MISC_H
  2. #define SYSTEM_MISC_H TRUE
  3.  
  4. /*
  5. **  $VER: misc.h V1.0
  6. **
  7. **  (C) Copyright 1996-1998 DreamWorld Productions.
  8. **      All Rights Reserved.
  9. **
  10. */
  11.  
  12. #ifndef DPKERNEL_H
  13. #include <dpkernel/dpkernel.h>
  14. #endif
  15.  
  16. #ifndef FILES_FILES_H
  17. #include <files/files.h>
  18. #endif
  19.  
  20. /****************************************************************************
  21. ** Object Referencing structure.
  22. */
  23.  
  24. #define VER_REFERENCE  1
  25. #define TAGS_REFERENCE ((ID_SPCTAGS<<16)|ID_REFERENCE)
  26.  
  27. struct Reference {
  28.   struct Head Head;       /* [00] Standard header */
  29.   struct Reference *Next; /* [12] Next reference */
  30.   struct Reference *Prev; /* [16] Previous reference */
  31.   WORD   ClassID;         /* [20] ID of the class */
  32.   WORD   Pad;             /* [22] Reserved */
  33.   BYTE   *ClassName;      /* [24] Name of the class */
  34.   BYTE   *ModName;        /* [28] Name of the module containing the object */
  35.  
  36.   #ifdef _DCC
  37.     LONG (*CheckFile)(__A0 struct File *, __A1 APTR Buffer);
  38.   #else
  39.    #ifdef __SASC
  40.     __asm  LONG (*CheckFile)(register __a0 struct File *, register __a1 APTR Buffer);
  41.    #else
  42.     LONG (*CheckFile)(struct File *, APTR Buffer);
  43.    #endif
  44.   #endif
  45.  
  46.   WORD   ModNumber;   /* [36] Module ID number */
  47.  
  48.   /* Private fields below */
  49.  
  50.   struct Segment *prvSegment;
  51.   struct Module  *prvModule;
  52. };
  53.  
  54. #define REFA_ClassID   (TWORD|20)
  55. #define REFA_ClassName (TAPTR|24)
  56. #define REFA_ModName   (TAPTR|28)
  57. #define REFA_CheckFile (TAPTR|32)
  58. #define REFA_ModNumber (TWORD|36)
  59.  
  60. /****************************************************************************
  61. ** Universal Structure, used in the CopyStructure() routine.
  62. */
  63.  
  64. #define VER_UNIVERSE  1
  65. #define TAGS_UNIVERSE ((ID_SPCTAGS<<16)|ID_UNIVERSE)
  66.  
  67. struct Universe {
  68.   struct Head Head;
  69.   LONG   *Palette;
  70.   WORD   Planes;
  71.   WORD   Width;
  72.   WORD   Height;
  73.   WORD   InsideWidth;
  74.   WORD   InsideByteWidth;
  75.   WORD   InsideHeight;
  76.   struct DPKTask *Task;
  77.   LONG   Frequency;
  78.   LONG   AmtColours;
  79.   WORD   ScrMode;
  80.   WORD   BmpType;
  81.   APTR   Source;
  82.   struct JoyData *JoyData;
  83.   struct Raster  *Raster;
  84.   WORD   XOffset;
  85.   WORD   YOffset;
  86.   WORD   InsideYOffset;
  87.   WORD   InsideXOffset;
  88.   WORD   Channel;
  89.   WORD   Priority;
  90.   LONG   Length;
  91.   WORD   Octave;
  92.   WORD   Volume;
  93. };
  94.  
  95. #endif /* SYSTEM_MISC_H */
  96.